# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-dotnet/gtkgl-sharp/gtkgl-sharp-0.05.ebuild,v 1.10 2006/03/16 13:53:15 caleb Exp $

inherit mono subversion libtool autotools eutils

DESCRIPTION="A C# OpenGL Binding"
HOMEPAGE="http://www.olympum.com/~bruno/gtkglarea-sharp.html"
#SRC_URI="http://ftp.novell.com/pub/forge/simetron/${PN}/${PV}/${P}.tar.gz"

ESVN_REPO_URI="http://anonsvn.mono-project.com/source/trunk/gtkglarea-sharp"
ESVN_PROJECT="${PN}"

LICENSE="as-is"
SLOT="0"
KEYWORDS="x86 ~ppc ~amd64"
IUSE=""

DEPEND=">=dev-lang/mono-0.91
	>dev-dotnet/tao-opengl-2.0
	>dev-dotnet/tao-devil-2.0
	=dev-dotnet/gtk-sharp-1.0*"

src_unpack(){
	subversion_src_unpack
	epatch "${FILESDIR}/gtkglarea-sharp-broken-autogen-hack.patch"
}

src_compile(){
	cd ${S}
#	elibtoolize
#	WANT_AUTOCONF=2.5 autoconf || die "autoconf failed"
#	ANT_AUTOMAKE=1.9 automake || die "automake failed"
#	WANT_AUTOMAKE=1.9
	./autogen.sh
	econf
}

src_install() {
	make DESTDIR=${D} install || die
	dodoc AUTHORS ChangeLog NEWS README TODO
}
